﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.Serialization;

namespace Pg.BioMedics.SDR.Entities
{
    /// <summary>
    /// Content entity
    /// </summary>
    [Serializable]
    [DataContract]
    public class Content
    {
        /// <summary>
        /// Gets content unique id
        /// </summary>
        [DataMember]
        public int? Id
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets contents file name
        /// </summary>
        [DataMember]
        public string FileName
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets binary data buffer
        /// </summary>
        [DataMember]
        public byte[] Data
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets content type code
        /// </summary>
        [DataMember]
        public string TypeCode
        {
            get;
            set;
        }

        /// <summary>
        /// Gets contents last status code
        /// </summary>
        [DataMember]
        public string StatusCode
        {
            get;
            set;
        }

        /// <summary>
        /// Gets contents last status change date and time 
        /// </summary>
        [DataMember]
        public DateTime? StatusDate
        {
            get;
            set;
        }
    }
}
